package com.shangyitong.yygh_order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shangyitong.yygh.model.order.OrderInfo;
import com.shangyitong.yygh.vo.order.OrderCountQueryVo;
import com.shangyitong.yygh.vo.order.OrderQueryVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface OrderService extends IService<OrderInfo> {
    Long saveOrder(String scheduleId, Long patientId);

    Page<OrderInfo> getOrders(Integer page, Integer limit, OrderQueryVo orderQueryVo, HttpServletRequest request);

    boolean cancelOrder(Long orderId);

    void patientTips();

    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
